{% extends'CNAMActimanBundle::layoutBody.html.twig' %}
{% block body %}

    {% block content %}  
        <div class="row">
            <ul class="breadcrumb" style="margin-bottom: 5px;">
                <li>
                    Vous êtes ici :  
                </li>
                <li>
                    <a href="#">Gestion procédures</a>  
                </li>
                <li>
                    <a href="#">Modifier</a>  
                </li>
                <li>
                    <a href="#">Editer une opération</a>  
                </li>
            </ul>
        <div class="col-lg-12">
            <h2>{{ Phase.acProcedure.nomProcedure }} - {{ Phase.nomPhase }}</h2>
            <hr align="center" width="90%" size="5">
        </div>   
        {{ include('CNAMActimanBundle:Procedure:operationEditFormulaire.html.twig') }}
    
        <div class="col-lg-12">
          <h3>Liste des Opérations</h3>
          <div class="table-responsive">
            <table class="table table-bordered table-hover tablesorter">
              <thead>
                <tr>
                    <th width="8%"><center>Numéro <i class="fa fa-sort"></i></center></th>
                    <th width="20%">Opération <i class="fa fa-sort"></i></th>
                    <th width="30%">Description <i class="fa fa-sort"></i></th>
                    <th width="10%">Service <i class="fa fa-sort"></i></th>
                    <th width="12%">Temps théorique <i class="fa fa-sort"></i></th>
                    <th width="10%">Dépendance <i class="fa fa-sort"></i></th>
                    <th width="10%"><center>Action <i class="fa fa-sort"></i></center></th>
                </tr>
              </thead>
              <tbody>
                  {% for Operation in Operations %}
                      <tr>
                          <td><center>{{ Operation.id }}</center></td>
                          <td>{{ Operation.nomOperation }}</td>
                          <td>{{ Operation.description }}</td>
                          <td>{{ Operation.Service.nomService }}</td>
                          <td>{{ Operation.delaiOperation }}</td>
                          <td>{{ Operation.dependanceOperation }}</td>                         
                          <td><center><a href="{{ path('cnam_actiman_procedure_operationEdit', {'idop': Operation.id}) }}">Editer</a> / <a onClick="return confirm('Voulez-vous vraiment supprimer cette opération ?');" href="{{ path('cnam_actiman_procedure_operationDelete', {'idop': Operation.id}) }}">Suprimer</a></center></td>
                      </tr>
                  {% endfor %}
              </tbody>
            </table>
          </div>
        </div>    
        {% endblock%}
  {% endblock%}